package com.cmc.cloud.cmclink.doc.convert;

import com.cmc.cloud.cmclink.doc.api.document.rep.SoDetailRespDto;
import com.cmc.cloud.cmclink.doc.vo.sovo.sovo.SoDetailRespVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 订舱主 Convert
 *
 * @author 招商轮船-管理员
 */
@Mapper
public interface SoDetailConvert {

    SoDetailConvert INSTANCE = Mappers.getMapper(SoDetailConvert.class);
    /**
     * 数据库实体类 转 响应VO
     *
     * @param bean 数据库实体类
     * @return 响应VO
     */
    SoDetailRespDto convert(SoDetailRespVO bean);

    /**
     * 数据库实体类 转 响应VO
     *
     * @param bean
     * @return
     */
    List<SoDetailRespDto> convert(List<SoDetailRespVO> bean);

}
